package com.ctos.ojbackendjudgeservice.judge.codeSandBox;


import com.ctos.ojbackendjudgeservice.judge.codeSandBox.impl.ExampleCodeSandBox;
import com.ctos.ojbackendjudgeservice.judge.codeSandBox.impl.RemoteCodeSandBox;
import com.ctos.ojbackendjudgeservice.judge.codeSandBox.impl.ThirdPartyCodeSandBox;

public class CodeSandBoxFactory {

   public static CodeSandBox getInstance(String type) {
        switch(type) {
            case "remote":
                return new RemoteCodeSandBox();
            case "thirdParty":
                return new ThirdPartyCodeSandBox();
            case "example":
            default:
                return new ExampleCodeSandBox();
        }
    }

}
